package jungsun;

import java.util.Scanner;

public class J09Circle {
	
	public static void main(String[]args){
		//변수선원
		double radius[] = new double[2];
		double area[] = new double[2];
		double perim[] = new double[2];
		double pi = 3.14;
		//원형 계산
		inputCircle(radius);
		getArea(radius,area,pi);
		getPerim(perim,pi,radius);
		//결과 출력
		System.out.println(radius[1]);
		System.out.println(area[1]);
		System.out.println(perim[1]);
		
		
	}
      
	private static void inputCircle(double[] radius) {
		Scanner sc = new Scanner(System.in);
		System.out.println("반지름은?");
		radius[1] = sc.nextInt();
		
	}

	public static void getArea(double radius[],double area[],double pi){
		area[1]=pi*radius[1]*radius[1];
	}
	
	public static void  getPerim( double perim[],double pi,double radius[]){
		perim[1
		      ] = 2 * pi *radius[1];
	}
} 
